package com.xyh.utils;

import com.alibaba.fastjson2.JSON;

public class JsonUtils {

    public static String convertObj2Json(Object obj) {
        if (null == obj) {
            return null;
        }
        // FastJSON 2.x 默认已关闭循环引用检测
        return JSON.toJSONString(obj);
    }
}
